package com.trendytech.tds.common.mybatis;

/**
 * MySQL数据库方言实现
 *
 */
public class MySQLDialect implements Dialect {

	@Override
	public String getLimitString(String sql, int offset, int limit) {
		sql = sql.trim();
		StringBuffer pagingSelect = new StringBuffer(sql);
		pagingSelect.append(" limit ");
		pagingSelect.append(offset);
		pagingSelect.append(",");
		pagingSelect.append(limit);
		return pagingSelect.toString();
	}

}
